package com.itheima.test;

public class test2 {
    public static void main(String[] args) {
        //求圆的面积
        getArea(10);

    }

    public static void getArea(double r){
        double result = 3.14*r*r;
        System.out.println(result);
    }
}